package com.aust.staticProxy.test1;

public class UserServiceProxy implements UserService {
    private UserService userService;

    public UserServiceProxy(UserService userService) {
        this.userService = userService;
    }

    @Override
    public void login(String username) {
        System.out.println("[日志] 正在调用 login 方法");
        userService.login(username);
        System.out.println("[日志] login 方法调用完成");
    }

    @Override
    public void logout() {
        System.out.println("[日志] 正在调用 logout 方法");
        userService.logout();
        System.out.println("[日志] logout 方法调用完成");
    }
}
